package com.ltmall.api.rule;

public class CSG {
    private int cartID;//购物车ID
    private int shopID;//商店ID
    private int goodsID;//商品ID
    private int pinID;//拼包ID

    public int getPinID() {
        return pinID;
    }

    public void setPinID(int pinID) {
        this.pinID = pinID;
    }

    public int getGoodsID() {
        return goodsID;
    }

    public void setGoodsID(int goodsID) {
        this.goodsID = goodsID;
    }

    public int getShopID() {
        return shopID;
    }

    public void setShopID(int shopID) {
        this.shopID = shopID;
    }

    public int getCartID() {
        return cartID;
    }

    public void setCartID(int cartID) {
        this.cartID = cartID;
    }

    @Override
    public boolean equals(Object obj) {
        CSG s = (CSG) obj;
        return (shopID == s.getShopID());
    }

    @Override
    public int hashCode() {
//		String in =  shopID +"";
//		return in.hashCode();
        return shopID;
    }

}